package org.geometerplus.fbreader.formats.oeb;

import org.geometerplus.zlibrary.core.xml.ZLStringMap;
import org.geometerplus.zlibrary.core.xml.ZLXMLReaderAdapter;

public class ContainerFileReader extends ZLXMLReaderAdapter {
	private String myRootPath;

	public String getRootPath() {
		return myRootPath;
	}

	@Override
	public boolean startElementHandler(String tag, ZLStringMap xmlattributes) {
		if ("rootfile".equalsIgnoreCase(tag)) {
			myRootPath = xmlattributes.getValue("full-path");
			if (myRootPath != null) {
				return true;
			}
		}
		return false;
	}
}
